package com.jymj.enumEntity.zjd;

/**
 * Created by dl on 2019/10/14.
 */
public enum ZjdTcFileEnum {
    one("身份证", 11),
    two("户口簿", 12),
    nin("宅基地使用权证", 13),
    three("自愿退出宅基地的申请表", 14),
    four("《自愿退出宅基地协议》",31),
    five("其他", 110);

    // 成员变量
    private String name;
    private int index;

    ZjdTcFileEnum(String name, int index) {
        this.name = name;
        this.index = index;
    }

    // 普通方法
    public static String getName(int index) {
        for (ZjdTcFileEnum s : ZjdTcFileEnum.values()) {
            if (s.getIndex() == index) {
                return s.name;
            }
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}
